import {get} from "@/utils/request";
/**
 * 查找个人信息
 * @returns
 */
export const getPersonal = () => get("/personal/personal/getPersonal");
// 查找常用地址
export const getAddress = (passengerId) => get("/personal/personal/address/"+passengerId);
export const isOldPasswordCorrect = (passengerId,fareStartPassword) => get("/personal/personal/isOldPasswordCorrect?passengerId="+passengerId+'', {fareStartPassword});

export const updatePassword = (passengerId,farePassword) => get("/personal/personal/updatePassword?passengerId="+passengerId+'', {farePassword});
export const UserRegister = (farePhone) => get("/personal/personal/register/"+farePhone);
export const chaxun = (farePhone) => get("/personal/personal/chaxun/"+farePhone);
export const updatePhone = (passengerId,farePhone) => get("/personal/personal/updatePhone?passengerId="+passengerId+'', {farePhone});

// 改变手机剪切板权限
export const updateStatus2 = (id) => get("/personal/personal/updateStatus2/"+ id);
export const updateStatus3 = (id) => get("/personal/personal/updateStatus3/"+ id);
//改变定位功能
export const updateStatus4 = (id) => get("/personal/personal/updateStatus4/"+ id);
export const updateStatus5 = (id) => get("/personal/personal/updateStatus5/"+ id);
//改变消息通知功能
export const updateStatus6 = (id) => get("/personal/personal/updateStatus6/"+ id);
export const updateStatus7 = (id) => get("/personal/personal/updateStatus7/"+ id);